From: Aaron Schulz Date: Wed, 23 Jan 2013 19:11:39 +0000 (-0800) Subject: Improved some thumb.php error messages. X-Git-Tag: 1.31.0-rc.0~20942^2 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=a04d9cb7487773e102285de13b7092a2bc9b6821;p=lhc%2Fweb%2Fwiklou.git Improved some thumb.php error messages. Change-Id: I5a61e898dd97db67b719a13ca044530c4baecc99 --- diff --git a/thumb.php b/thumb.php index f59ee0f8ff..781686092b 100644 --- a/thumb.php +++ b/thumb.php @@ -170,11 +170,11 @@ function wfStreamThumb( array $params ) { // Check the source file storage path if ( !$img->exists() ) { - wfThumbError( 404, 'The source file for the specified thumbnail does not exist.' ); + wfThumbError( 404, "The source file '$fileName' does not exist." ); wfProfileOut( __METHOD__ ); return; } elseif ( $img->getPath() === false ) { - wfThumbError( 500, 'The source file is not locally accessible.' ); + wfThumbError( 500, "The source file '$fileName' is not locally accessible." ); wfProfileOut( __METHOD__ ); return; }